#include "def.h"
#include "init.h"

int init() {
    if (init_curses()) {
        fprintf(stderr, "ERR: could not initialize libcurses");
        return 1;
    }
    
    if (init_mania()) {
        fprintf(stderr, "ERR: could not initialize graphics");
        return 1;
    }

    /* signal success */
    return 0;
}

int cleanup() {
    /* restore normal tty session */
    endwin();
    /* signal success */
    return 0;
}
